<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>

<!-- datagrid数据表格 -->
<table id="myDatagriduser"></table>
<!-- datagrid数据表格==END== -->

<script type="text/javascript">
    $(function (){
        /* datagrid展示数据 */
        $("#myDatagriduser").datagrid({
            url:'${pageContext.request.contextPath}/user/showUsers',
            pagination:true,
            columns:[[
                {title:'用户编号',field:'userId'},
                {title:'头像',field:'userImage',formatter: function(value,row,index){
                        return  "<img src='${pageContext.request.contextPath}/img/"+value+"'/>";
                      }
                },
                {title:'用户名',field:'userName'},
                {title:'法名',field:'userNickname'},
                {title:'密码',field:'userPassword'},
                {title:'性别',field:'userSex'},
                {title:'电话',field:'userTelphone'},
                {title:'个性签名',field:'userAutograph'},
                {title:'省',field:'userProvince'},
                {title:'市',field:'userCity'},
                {title:'上师编号',field:'guruId'},
                {title:'用户状态',field:'userStatus',formatter: function(value,row,index){
                        if(value==0){
                            return "正常";
                        }else{
                            return "已冻结";
                        }
                    }
                },
                {title:'注册日期',field:'userCreateDate'},
            ]]
        })
    })
    /* datagrid展示数据  结束 */
</script>

